import request from '@/utils/request'

export function getMenuList(token) {
  return request({
    url: '/system/menu/getMenuList',
    method: 'get'
  })
}

export function insert(data) {
  return request({
    url: '/system/menu/insert',
    method: 'post',
    data
  })
}

export function deleteById(id) {
  return request({
    url: '/system/menu/delete',
    method: 'get',
    params:{id}
  })
}

export function update(data) {
  return request({
    url: '/system/menu/update',
    method: 'post',
    data
  })
}



